/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  font-family: "Jua", sans-serif;
  font-style: normal;
}

body { 
  margin: 0;
  padding: 0;
}

#screen-wrapper {
  background-color: #4d97ff;
  margin: 0px 20px 0px 20px;
  border-radius: 10px;
  padding: 10px;
}

#header-wrapper {
  padding: 20px;

  /* ✅ 추가: 로그인/회원가입이 overlay보다 위에 뜨게 하기 위한 컨텍스트 */
  position: relative;
  z-index: 1001;
}

ul#navigation {
  display: flex;
  gap: 20px;
  list-style: none;
  background-color: #4d97ff;
  padding: 20px 20px 0px 0px;
  height: 40px;
  border-radius: 10px !important;
}

ul#navigation > li.unit {
  margin-top: 0px;
  height: auto;
  transition: background-color 300ms ease;
}

ul#navigation > li.unit > span.span {
  font-size: 18px;
  -webkit-text-fill-color: #ffffff;
}

ul#navigation > li.unit > span.span:hover {
  -webkit-text-fill-color: #cccccc !important;
  cursor: pointer;
}



li#search-wrapper {
  flex-grow: 1;
  z-index: 1000;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  bottom: 20px;
  height: 45vh !important;
  transition: background-color 0ms ease !important;
}

/* 검색 input 감싸는 박스 */
#search-box {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding-right: 8px;
  width: 100%;
}

/* 검색 input 자체 */
#search-box > input {
  background-color: #f0f0f0;
  border: none;
  outline: none;
  margin-bottom: 5px;
  width: 100%;
  height: 35px;
  font-size: 16px;
  border-radius: 8px;
  padding-left: 5px;
}

/* 어두운 배경 */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999; /* 로그인보다 낮아야 함 */
}

/* 숨김 처리용 */
.hidden {
  display: none;
}

/* 로그인 / 회원가입 버튼을 위에 띄우기 */
#LogIn-wrapper, #SignUp-wrapper {
  position: relative;
  z-index: 1002; /* 부모보다 높이면 더 확실함 */
}

#LogIn-wrapper {
  background-color: #ffffff;
  -webkit-text-fill-color: #4d97ff;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  bottom: 11px;
  display: inline-block;
  height: 21px !important;
}

#LogIn-wrapper > span.span {
  -webkit-text-fill-color: #4d97ff !important;
}

#clicked-unit {
  padding-top: 10px;
  width: calc(100%);
  height: calc(100% - 50px);
  -webkit-text-fill-color: #ffffff !important;
}

.label {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  width: 200px;
  text-align: center;
}

.label span {
  -webkit-text-fill-color: #4d97ff;
}

.shin {
  position: relative;
  display: inline-block;
  background-color: #4d97ff;
  -webkit-text-fill-color: #ffffff !important;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 75%;
  overflow: hidden;
  vertical-align: middle;
}

/* 빛나는 선 효과 */
.shin::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: skewX(-30deg);
  animation: shine 5s infinite;
  pointer-events: none;
}


/* 애니메이션 정의 */
@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  20% {
    left: 100%;
    opacity: 1;
  }
  21% {
    left: 100%;
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

#left-bar {
  display: inline-flex;
  flex-direction: column;
  height: 100%;
  margin-right: 4px;
}

#left-bar > div.label {
  margin-bottom: 10px;
}

#main-bar {
  display: inline-flex;
  flex-direction: column;
  width: calc(100% - 250px);
}

#main-bar > .label {
  width: 100% !important;
}

#clicked-unit {
  display: flex;
  justify-content: center;
  overflow: scroll;

}

/* #clicked-unit :hover {
  -webkit-text-fill-color: #4d97ff !important;
} */

#clicked-unit::-webkit-scrollbar{
  display:none;
}

#main-bar > .label {
  margin-bottom: 10px;
}

#screen-wrapper {
  -webkit-text-fill-color: #ffffff;
  padding: 10px 10px 17px 10px;
}

#screen-wrapper span {
  border-radius: 10px;
  margin-top: 10px;
  padding: 10px;
  background-color: #ffffff;
  -webkit-text-fill-color: #4d97ff;
}

h1, h3 {
  margin: 0;
  padding: 0;
  margin-bottom: 0px;
}

#screen-wrapper h3 {
  position: relative;
  bottom: 5px;
  margin-bottom: 50px;
}

#screen-wrapper span {
  position: relative;
  bottom: 5px;
}